package net.csdn.business.discuss.feign.api;


import net.csdn.business.discuss.common.constant.ServiceNameConstants;
import net.csdn.business.discuss.common.model.dto.*;
import net.csdn.business.discuss.common.model.vo.NotifyResponseVO;
import net.csdn.business.discuss.feign.decoder.SystemFeignErrorDecoder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Auther: zhangyalei
 * @Date: 2022/12/21 16:59
 * @Description:
 */
@FeignClient(value = ServiceNameConstants.ATOMGIT_NOTIFY_SERVICE,contextId = ServiceNameConstants.ATOMGIT_NOTIFY_CONTEXT_ID, configuration = SystemFeignErrorDecoder.class)
public interface NotifyFeignClient {

    /**
     * @Author zhangyl
     * @Description 发送系统通知接口
     * @Date 11:21 2023/12/18
     * @Param
     * @return
     **/
    @PostMapping("/api/v1/notify")
    public NotifyResponseVO sendNotify(@RequestBody SendNotifyDTO params);

}